package com.cloud.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Data
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "access")
public class AccessConfig {
    /**
     * 是否启用
     */
    private boolean enable;

    /**
     * 排除应用名
     */
    private List<String> excludeAppNames;

    /**
     * 排除URI的后缀
     */
    private List<String> excludeURISuffixs;
}
